//package com.muki.spider.core;
//
//import java.util.HashMap;
//import java.util.Map;
//
//import javax.annotation.Resource;
//import javax.jms.Topic;
//
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.jms.core.JmsMessagingTemplate;
//import org.springframework.scheduling.annotation.EnableScheduling;
//import org.springframework.scheduling.annotation.Scheduled;
//import org.springframework.stereotype.Component;
//
//@Component
//@EnableScheduling
//public class MessageProducer {
//
//	@Autowired private JmsMessagingTemplate jmsMessagingTemplate;
//	
//	@Resource(name="topic") private Topic tasks;
//	
//	@Scheduled(fixedDelay=3000)
//	public void send() {
//		Map<String,String> map = new HashMap<>();
//		map.put("topic", "topic");
//		map.put("num", "20");
//		jmsMessagingTemplate.convertAndSend(this.tasks, map);
//	}
//	
//}
